package com.sgai.zero_robot.ui.control;
import android.text.TextUtils;
import com.sgai.zero_robot.base.BaseAdapter;
import com.sgai.zero_robot.databinding.ItemZeroStateLineBinding;

public class ZeroStateListAdapter extends BaseAdapter<String, ItemZeroStateLineBinding> {

    @Override
    protected void onBindView(ItemZeroStateLineBinding binding, int position, String zeroListInfo) {
        if (TextUtils.isEmpty(zeroListInfo)){
            binding.tvCell.setText("/");
        }else{
            binding.tvCell.setText(zeroListInfo);
        }
    }
}